package ThirdPagh;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.bumptech.glide.Glide;
import com.gyf.immersionbar.ImmersionBar;

import SHU.water2.R;

import static ThirdPagh.historyL.picUrl;

public class historypic extends AppCompatActivity implements View.OnClickListener {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.historypic);
        ImmersionBar.with(this).statusBarColor(R.color.color).fitsSystemWindows(true).init();
        ImageView netPic = findViewById(R.id.historyPic);
        Glide.with(this).load("http://"+picUrl).into(netPic);
        click();

    }

    private void click() {
        findViewById(R.id.ret1).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {

        switch (v.getId()) {
            case R.id.ret1:
                finish();
                break;
        }
    }
}